<template>
<div>
  <el-dialog
    :title="title"
    :close-on-click-modal="false"
     v-dialogDrag
    :visible.sync="visible">
    <el-form :model="inputForm" size="small" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''"  :disabled="method==='view'"
             label-width="120px">
      <el-row  :gutter="15">
        <el-col :span="12">
            <el-form-item label="框架承揽合同" prop="contractFramework.id"
                :rules="[
                 ]">
          <GridSelect
            title="选择框架承揽合同"
            labelName = 'contractNumber'
            labelValue = 'id'
            :value = "inputForm.contractFramework.id"
            :limit="1"
            @getValue='(value) => {inputForm.contractFramework.id=value}'
            :columns="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'contractNumber',
              label: '合同编号'
            }
            ]"
            :searchs="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'contractNumber',
              label: '合同编号'
            }
            ]"
            dataListUrl="/epc/contractframework/contractFramework/list"
            entityBeanName="contractFramework"
            queryEntityUrl="/epc/contractframework/contractFramework/queryById">
          </GridSelect>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="申请部门" prop="applyDepartment"
                :rules="[
                 ]">
              <el-input v-model="inputForm.applyDepartment" placeholder="请填写申请部门"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="申请人" prop="proposer"
                :rules="[
                 ]">
              <el-input v-model="inputForm.proposer" placeholder="请填写申请人"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="申请日期" prop="applicationDate"
                :rules="[
                 ]">
                <el-date-picker
                      style="width: 100%;"
                      v-model="inputForm.applicationDate"
                      type="datetime"
                      value-format="yyyy-MM-dd HH:mm:ss"
                      placeholder="选择日期时间">
                    </el-date-picker>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="甲方" prop="firstParty.id"
                :rules="[
                 ]">
          <GridSelect
            title="选择甲方"
            labelName = 'name'
            labelValue = 'id'
            :value = "inputForm.firstParty.id"
            :limit="1"
            @getValue='(value) => {inputForm.firstParty.id=value}'
            :columns="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'name',
              label: '姓名'
            }
            ]"
            :searchs="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'name',
              label: '姓名'
            }
            ]"
            dataListUrl="/epc/pmfirstparty/firstParty/list"
            entityBeanName="firstParty"
            queryEntityUrl="/epc/pmfirstparty/firstParty/queryById">
          </GridSelect>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="工程来源" prop="engineeringSource"
                :rules="[
                 ]">
              <el-input v-model="inputForm.engineeringSource" placeholder="请填写工程来源"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="工程大项" prop="singleProject"
                :rules="[
                 ]">
              <el-input v-model="inputForm.singleProject" placeholder="请填写工程大项"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="单位名称" prop="officeName"
                :rules="[
                 ]">
              <el-input v-model="inputForm.officeName" placeholder="请填写单位名称"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="归属分公司" prop="filiale.id"
                :rules="[
                 ]">
          <SelectTree
                      ref="filiale"
                      :props="{
                          value: 'id',             // ID字段名
                          label: 'name',         // 显示名称
                          children: 'children'    // 子级字段名
                        }"

                      url="/sys/office/treeData?type=2"
                      :value="inputForm.filiale.id"
                      :clearable="true"
                      :accordion="true"
                      @getValue="(value) => {inputForm.filiale.id=value}"/>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="归属项目部" prop="projectDepartment.id"
                :rules="[
                 ]">
          <SelectTree
                      ref="projectDepartment"
                      :props="{
                          value: 'id',             // ID字段名
                          label: 'name',         // 显示名称
                          children: 'children'    // 子级字段名
                        }"

                      url="/sys/office/treeData?type=2"
                      :value="inputForm.projectDepartment.id"
                      :clearable="true"
                      :accordion="true"
                      @getValue="(value) => {inputForm.projectDepartment.id=value}"/>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="委托日期" prop="entrustmentDate"
                :rules="[
                 ]">
                <el-date-picker
                      style="width: 100%;"
                      v-model="inputForm.entrustmentDate"
                      type="datetime"
                      value-format="yyyy-MM-dd HH:mm:ss"
                      placeholder="选择日期时间">
                    </el-date-picker>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="开工日期" prop="commenceDate"
                :rules="[
                 ]">
                <el-date-picker
                      style="width: 100%;"
                      v-model="inputForm.commenceDate"
                      type="datetime"
                      value-format="yyyy-MM-dd HH:mm:ss"
                      placeholder="选择日期时间">
                    </el-date-picker>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="完工日期" prop="completeDate"
                :rules="[
                 ]">
                <el-date-picker
                      style="width: 100%;"
                      v-model="inputForm.completeDate"
                      type="datetime"
                      value-format="yyyy-MM-dd HH:mm:ss"
                      placeholder="选择日期时间">
                    </el-date-picker>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="工程施工性质" prop="natureEngineeringConstruction"
                :rules="[
                 ]">
                <el-select v-model="inputForm.natureEngineeringConstruction" placeholder="请选择"  style="width: 100%;">
                          <el-option
                            v-for="item in $dictUtils.getDictList('nature_engineering_construction')"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                          </el-option>
                      </el-select>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="结算性质" prop="settlementProperties"
                :rules="[
                 ]">
                <el-select v-model="inputForm.settlementProperties" placeholder="请选择"  style="width: 100%;">
                          <el-option
                            v-for="item in $dictUtils.getDictList('settlement_properties')"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                          </el-option>
                      </el-select>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="建设性质" prop="constructionNature"
                :rules="[
                 ]">
                <el-select v-model="inputForm.constructionNature" placeholder="请选择"  style="width: 100%;">
                          <el-option
                            v-for="item in $dictUtils.getDictList('construction_nature')"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                          </el-option>
                      </el-select>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="专业id" prop="major.id"
                :rules="[
                 ]">
          <GridSelect
            title="选择专业id"
            labelName = 'name'
            labelValue = 'id'
            :value = "inputForm.major.id"
            :limit="1"
            @getValue='(value) => {inputForm.major.id=value}'
            :columns="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'majorName',
              label: '专业名称'
            }
            ]"
            :searchs="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'majorName',
              label: '专业名称'
            }
            ]"
            dataListUrl="/epc/contractmajor/contractMajor/list"
            entityBeanName="contractMajor"
            queryEntityUrl="/epc/contractmajor/contractMajor/queryById">
          </GridSelect>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="施工区域" prop="constructionRegion"
                :rules="[
                 ]">
              <el-input v-model="inputForm.constructionRegion" placeholder="请填写施工区域"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作方性质" prop="naturePartner"
                :rules="[
                 ]">
                <el-select v-model="inputForm.naturePartner" placeholder="请选择"  style="width: 100%;">
                          <el-option
                            v-for="item in $dictUtils.getDictList('nature_partner')"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                          </el-option>
                      </el-select>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作方" prop="partner"
                :rules="[
                 ]">
              <el-input v-model="inputForm.partner" placeholder="请填写合作方"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="工程编号" prop="jobNumber"
                :rules="[
                 ]">
              <el-input v-model="inputForm.jobNumber" placeholder="请填写工程编号"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="工程状态" prop="projectStatus"
                :rules="[
                 ]">
                <el-select v-model="inputForm.projectStatus" placeholder="请选择"  style="width: 100%;">
                          <el-option
                            v-for="item in $dictUtils.getDictList('project_status')"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                          </el-option>
                      </el-select>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="建设单位" prop="constructionUnit.id"
                :rules="[
                 ]">
          <SelectTree
                      ref="constructionUnit"
                      :props="{
                          value: 'id',             // ID字段名
                          label: 'name',         // 显示名称
                          children: 'children'    // 子级字段名
                        }"

                      url="/sys/office/treeData?type=2"
                      :value="inputForm.constructionUnit.id"
                      :clearable="true"
                      :accordion="true"
                      @getValue="(value) => {inputForm.constructionUnit.id=value}"/>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="部门经理" prop="departmentManager"
                :rules="[
                 ]">
              <el-input v-model="inputForm.departmentManager" placeholder="请填写部门经理"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="部门经理联系电话" prop="departmentManagerPhone"
                :rules="[
                 ]">
              <el-input v-model="inputForm.departmentManagerPhone" placeholder="请填写部门经理联系电话"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="项目经理人" prop="projectManagerEveryOne.id"
                :rules="[
                 ]">
                <user-select :limit='1' :value="inputForm.projectManagerEveryOne.id" @getValue='(value) => {inputForm.projectManagerEveryOne.id=value}'></user-select>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="项目经理联系电话" prop="projectManagerPhone"
                :rules="[
                 ]">
              <el-input v-model="inputForm.projectManagerPhone" placeholder="请填写项目经理联系电话"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="设计单位" prop="designdesignOrganization.id"
                :rules="[
                 ]">
          <SelectTree
                      ref="designdesignOrganization"
                      :props="{
                          value: 'id',             // ID字段名
                          label: 'name',         // 显示名称
                          children: 'children'    // 子级字段名
                        }"

                      url="/sys/office/treeData?type=2"
                      :value="inputForm.designdesignOrganization.id"
                      :clearable="true"
                      :accordion="true"
                      @getValue="(value) => {inputForm.designdesignOrganization.id=value}"/>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="设计负责人" prop="designPrincipal"
                :rules="[
                 ]">
              <el-input v-model="inputForm.designPrincipal" placeholder="请填写设计负责人"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="设计负责人联系电话" prop="designPrincipalPhone"
                :rules="[
                 ]">
              <el-input v-model="inputForm.designPrincipalPhone" placeholder="请填写设计负责人联系电话"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="设计人" prop="designer"
                :rules="[
                 ]">
              <el-input v-model="inputForm.designer" placeholder="请填写设计人"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="设计人联系电话" prop="designerPhone"
                :rules="[
                 ]">
              <el-input v-model="inputForm.designerPhone" placeholder="请填写设计人联系电话"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="监理单位" prop="supervisingUnit"
                :rules="[
                 ]">
              <el-input v-model="inputForm.supervisingUnit" placeholder="请填写监理单位"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="监理负责人" prop="supervisingPrincipal"
                :rules="[
                 ]">
              <el-input v-model="inputForm.supervisingPrincipal" placeholder="请填写监理负责人"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="现场监理" prop="siteSupervision"
                :rules="[
                 ]">
              <el-input v-model="inputForm.siteSupervision" placeholder="请填写现场监理"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="现场监理联系电话" prop="siteSupervisionPhone"
                :rules="[
                 ]">
              <el-input v-model="inputForm.siteSupervisionPhone" placeholder="请填写现场监理联系电话"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="含税投资额" prop="taxInclusiveInvestment"
                :rules="[
                 ]">
              <el-input v-model="inputForm.taxInclusiveInvestment" placeholder="请填写含税投资额"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本税率" prop="costingTaxRate"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingTaxRate" placeholder="请填写成本税率"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本税金" prop="costingTaxes"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingTaxes" placeholder="请填写成本税金"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="除税投资额" prop="taxDeductibleInvestment"
                :rules="[
                 ]">
              <el-input v-model="inputForm.taxDeductibleInvestment" placeholder="请填写除税投资额"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本安全生产费" prop="costingProductionSafetyCharge"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingProductionSafetyCharge" placeholder="请填写成本安全生产费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本技工工日" prop="costingMechanicManDays"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingMechanicManDays" placeholder="请填写成本技工工日"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本普工工日" prop="costingGeneralWorkerManDays"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingGeneralWorkerManDays" placeholder="请填写成本普工工日"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本综合工日" prop="costingComprehensiveManDays"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingComprehensiveManDays" placeholder="请填写成本综合工日"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本综合工日单价" prop="costingComprehensiveDailyUnitPrice"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingComprehensiveDailyUnitPrice" placeholder="请填写成本综合工日单价"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本劳务折扣" prop="costingServiceDiscounts"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingServiceDiscounts" placeholder="请填写成本劳务折扣"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本建安费" prop="costingTakeFee"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingTakeFee" placeholder="请填写成本建安费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本赔补费" prop="costingLossFee"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingLossFee" placeholder="请填写成本赔补费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本协调费" prop="costingCoordinateFee"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingCoordinateFee" placeholder="请填写成本协调费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本市场费" prop="costingMarketCost"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingMarketCost" placeholder="请填写成本市场费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本审计费" prop="costingAuditFee"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingAuditFee" placeholder="请填写成本审计费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本乙供材费" prop="costingMaterialFee"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingMaterialFee" placeholder="请填写成本乙供材费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本材料运费" prop="costingMaterialFreight"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingMaterialFreight" placeholder="请填写成本材料运费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本其他费" prop="costingOtherFee"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingOtherFee" placeholder="请填写成本其他费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作折扣" prop="cooperationDiscount"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationDiscount" placeholder="请填写合作折扣"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本毛利率" prop="costingGrossProfitRate"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingGrossProfitRate" placeholder="请填写成本毛利率"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="成本工程利润" prop="costingProjectRevenues"
                :rules="[
                 ]">
              <el-input v-model="inputForm.costingProjectRevenues" placeholder="请填写成本工程利润"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="含税合作费" prop="includingTaxCooperationFee"
                :rules="[
                 ]">
              <el-input v-model="inputForm.includingTaxCooperationFee" placeholder="请填写含税合作费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作税率" prop="cooperationTaxRate"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationTaxRate" placeholder="请填写合作税率"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作税金" prop="cooperationTaxes"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationTaxes" placeholder="请填写合作税金"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="除税合作费" prop="exceptTaxCooperationFee"
                :rules="[
                 ]">
              <el-input v-model="inputForm.exceptTaxCooperationFee" placeholder="请填写除税合作费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作安全生产费" prop="cooperationProductionSafetyCharge"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationProductionSafetyCharge" placeholder="请填写合作安全生产费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作技工工日" prop="cooperationMechanicManDays"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationMechanicManDays" placeholder="请填写合作技工工日"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作普工工日" prop="cooperationGeneralWorkerManDays"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationGeneralWorkerManDays" placeholder="请填写合作普工工日"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作综合工日" prop="cooperationComprehensiveManDays"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationComprehensiveManDays" placeholder="请填写合作综合工日"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作综合工日单价" prop="cooperationComprehensiveDailyUnitPrice"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationComprehensiveDailyUnitPrice" placeholder="请填写合作综合工日单价"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作劳务折扣" prop="cooperationServiceDiscounts"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationServiceDiscounts" placeholder="请填写合作劳务折扣"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作建安费" prop="cooperationServiceDiscounts"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationServiceDiscounts" placeholder="请填写合作建安费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作赔补费" prop="cooperationLossFee"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationLossFee" placeholder="请填写合作赔补费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作协调费" prop="cooperationCoordinateFee"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationCoordinateFee" placeholder="请填写合作协调费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作市场费" prop="cooperationMarketCost"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationMarketCost" placeholder="请填写合作市场费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作审计费" prop="cooperationAuditFee"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationAuditFee" placeholder="请填写合作审计费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作乙供材费" prop="cooperationMaterialFee"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationMaterialFee" placeholder="请填写合作乙供材费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作材料运费" prop="cooperationMaterialFreight"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationMaterialFreight" placeholder="请填写合作材料运费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作其他费" prop="cooperationOtherFee"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationOtherFee" placeholder="请填写合作其他费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作毛利率" prop="cooperationGrossProfitRate"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationGrossProfitRate" placeholder="请填写合作毛利率"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="合作工程利润" prop="cooperationProjectRevenues"
                :rules="[
                 ]">
              <el-input v-model="inputForm.cooperationProjectRevenues" placeholder="请填写合作工程利润"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="劳务费" prop="serviceFee"
                :rules="[
                 ]">
              <el-input v-model="inputForm.serviceFee" placeholder="请填写劳务费"     ></el-input>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="开工报告" prop="startWorkingReport.id"
                :rules="[
                 ]">
          <GridSelect
            title="选择开工报告"
            labelName = 'fillDate'
            labelValue = 'id'
            :value = "inputForm.startWorkingReport.id"
            :limit="1"
            @getValue='(value) => {inputForm.startWorkingReport.id=value}'
            :columns="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            :searchs="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            dataListUrl="/epc/pmstartworkingreport/startWorkingReport/list"
            entityBeanName="startWorkingReport"
            queryEntityUrl="/epc/pmstartworkingreport/startWorkingReport/queryById">
          </GridSelect>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="障碍延期报告" prop="barriersDelayReport.id"
                :rules="[
                 ]">
          <GridSelect
            title="选择障碍延期报告"
            labelName = 'fillDate'
            labelValue = 'id'
            :value = "inputForm.barriersDelayReport.id"
            :limit="1"
            @getValue='(value) => {inputForm.barriersDelayReport.id=value}'
            :columns="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            :searchs="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            dataListUrl="/epc/pmbarriersdelayreport/barriersDelayReport/list"
            entityBeanName="barriersDelayReport"
            queryEntityUrl="/epc/pmbarriersdelayreport/barriersDelayReport/queryById">
          </GridSelect>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="停工报告" prop="lockoutReport.id"
                :rules="[
                 ]">
          <GridSelect
            title="选择停工报告"
            labelName = 'fillDate'
            labelValue = 'id'
            :value = "inputForm.lockoutReport.id"
            :limit="1"
            @getValue='(value) => {inputForm.lockoutReport.id=value}'
            :columns="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            :searchs="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            dataListUrl="/epc/pmlockoutreport/lockoutReport/list"
            entityBeanName="lockoutReport"
            queryEntityUrl="/epc/pmlockoutreport/lockoutReport/queryById">
          </GridSelect>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="复工报告" prop="multiplexReport.id"
                :rules="[
                 ]">
          <GridSelect
            title="选择复工报告"
            labelName = 'fillDate'
            labelValue = 'id'
            :value = "inputForm.multiplexReport.id"
            :limit="1"
            @getValue='(value) => {inputForm.multiplexReport.id=value}'
            :columns="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            :searchs="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            dataListUrl="/epc/pmmultiplexreport/multiplexReport/list"
            entityBeanName="multiplexReport"
            queryEntityUrl="/epc/pmmultiplexreport/multiplexReport/queryById">
          </GridSelect>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="完工报告" prop="completionReport.id"
                :rules="[
                 ]">
          <GridSelect
            title="选择完工报告"
            labelName = 'fillDate'
            labelValue = 'id'
            :value = "inputForm.completionReport.id"
            :limit="1"
            @getValue='(value) => {inputForm.completionReport.id=value}'
            :columns="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            :searchs="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            dataListUrl="/epc/pmcompletionreport/completionReport/list"
            entityBeanName="completionReport"
            queryEntityUrl="/epc/pmcompletionreport/completionReport/queryById">
          </GridSelect>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="大项目周报" prop="projectWeeklyNewspaper.id"
                :rules="[
                 ]">
          <GridSelect
            title="选择大项目周报"
            labelName = 'fillDate'
            labelValue = 'id'
            :value = "inputForm.projectWeeklyNewspaper.id"
            :limit="1"
            @getValue='(value) => {inputForm.projectWeeklyNewspaper.id=value}'
            :columns="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            :searchs="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            dataListUrl="/epc/pmprojectweeklynewspaper/projectWeeklyNewspaper/list"
            entityBeanName="projectWeeklyNewspaper"
            queryEntityUrl="/epc/pmprojectweeklynewspaper/projectWeeklyNewspaper/queryById">
          </GridSelect>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="分包合同信息" prop="contractSubpackage.id"
                :rules="[
                 ]">
          <GridSelect
            title="选择分包合同信息"
            labelName = 'proposer'
            labelValue = 'id'
            :value = "inputForm.contractSubpackage.id"
            :limit="1"
            @getValue='(value) => {inputForm.contractSubpackage.id=value}'
            :columns="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'proposer',
              label: '申请人'
            }
            ]"
            :searchs="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'proposer',
              label: '申请人'
            }
            ]"
            dataListUrl="/epc/pmconstructionproject/constructionProject/list"
            entityBeanName="constructionProject"
            queryEntityUrl="/epc/pmconstructionproject/constructionProject/queryById">
          </GridSelect>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="劳务合同信息" prop="contractLabour.id"
                :rules="[
                 ]">
          <GridSelect
            title="选择劳务合同信息"
            labelName = 'contractName'
            labelValue = 'id'
            :value = "inputForm.contractLabour.id"
            :limit="1"
            @getValue='(value) => {inputForm.contractLabour.id=value}'
            :columns="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'contractName',
              label: '合同名称'
            }
            ]"
            :searchs="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'contractName',
              label: '合同名称'
            }
            ]"
            dataListUrl="/epc/contractlabour/contractLabour/list"
            entityBeanName="contractLabour"
            queryEntityUrl="/epc/contractlabour/contractLabour/queryById">
          </GridSelect>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="验收报告" prop="inspectionReport.id"
                :rules="[
                 ]">
          <GridSelect
            title="选择验收报告"
            labelName = 'fillDate'
            labelValue = 'id'
            :value = "inputForm.inspectionReport.id"
            :limit="1"
            @getValue='(value) => {inputForm.inspectionReport.id=value}'
            :columns="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            :searchs="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            dataListUrl="/epc/pminspectionreport/inspectionReport/list"
            entityBeanName="inspectionReport"
            queryEntityUrl="/epc/pminspectionreport/inspectionReport/queryById">
          </GridSelect>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="送审报告" prop="submitReviewReport.id"
                :rules="[
                 ]">
          <GridSelect
            title="选择送审报告"
            labelName = 'fillDate'
            labelValue = 'id'
            :value = "inputForm.submitReviewReport.id"
            :limit="1"
            @getValue='(value) => {inputForm.submitReviewReport.id=value}'
            :columns="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            :searchs="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'fillDate',
              label: '填报日期'
            }
            ]"
            dataListUrl="/epc/pmsubmitreviewreport/submitReviewReport/list"
            entityBeanName="submitReviewReport"
            queryEntityUrl="/epc/pmsubmitreviewreport/submitReviewReport/queryById">
          </GridSelect>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="工程日志" prop="engineeringLog.id"
                :rules="[
                 ]">
          <GridSelect
            title="选择工程日志"
            labelName = 'operationName'
            labelValue = 'id'
            :value = "inputForm.engineeringLog.id"
            :limit="1"
            @getValue='(value) => {inputForm.engineeringLog.id=value}'
            :columns="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'operationName',
              label: '操作人姓名'
            }
            ]"
            :searchs="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'operationName',
              label: '操作人姓名'
            }
            ]"
            dataListUrl="/epc/pmengineeringlog/engineeringLog/list"
            entityBeanName="engineeringLog"
            queryEntityUrl="/epc/pmengineeringlog/engineeringLog/queryById">
          </GridSelect>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="材料上报" prop="materialDepot.id"
                :rules="[
                 ]">
          <GridSelect
            title="选择材料上报"
            labelName = 'materialName'
            labelValue = 'id'
            :value = "inputForm.materialDepot.id"
            :limit="1"
            @getValue='(value) => {inputForm.materialDepot.id=value}'
            :columns="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'materialName',
              label: '材料名称'
            }
            ]"
            :searchs="[
            {
              prop: 'id',
              label: '主键'
            },
            {
              prop: 'materialName',
              label: '材料名称'
            }
            ]"
            dataListUrl="/epc/materialdepot/materialDepot/list"
            entityBeanName="materialDepot"
            queryEntityUrl="/epc/materialdepot/materialDepot/queryById">
          </GridSelect>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="归档状态" prop="archiveStatus"
                :rules="[
                 ]">
                <el-select v-model="inputForm.archiveStatus" placeholder="请选择"  style="width: 100%;">
                          <el-option
                            v-for="item in $dictUtils.getDictList('archive_status')"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                          </el-option>
                      </el-select>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="结算人员" prop="settlementClerk.id"
                :rules="[
                 ]">
                <user-select :limit='1' :value="inputForm.settlementClerk.id" @getValue='(value) => {inputForm.settlementClerk.id=value}'></user-select>
           </el-form-item>
        </el-col>
        <el-col :span="24">
            <el-form-item label="结算单" prop="finalStatement"
                :rules="[
                 ]">
              <el-upload ref="finalStatement"
                    v-if="visible"
                    :action="`${this.$http.BASE_URL}/sys/file/webupload/upload?uploadPath=/epc/pmroadworkarchive/roadworkArchive`"
                    :headers="{token: $cookie.get('token')}"
                    :on-preview="(file, fileList) => {$window.location.href = (file.response && file.response.url) || file.url}"
                    :on-success="(response, file, fileList) => {
                       inputForm.finalStatement = fileList.map(item => (item.response && item.response.url) || item.url).join('|')
                    }"
                    :on-remove="(file, fileList) => {
                      $http.post(`/sys/file/webupload/deleteByUrl?url=${(file.response && file.response.url) || file.url}`).then(({data}) => {
                        $message.success(data.msg)
                      })
                      inputForm.finalStatement = fileList.map(item => item.url).join('|')
                    }"
                    :before-remove="(file, fileList) => {
                      return $confirm(`确定移除 ${file.name}？`)
                    }"
                    multiple
                    :limit="5"
                    :on-exceed="(files, fileList) =>{
                      $message.warning(`当前限制选择 5 个文件，本次选择了 ${files.length} 个文件，共选择了 ${files.length + fileList.length} 个文件`)
                    }"
                    :file-list="finalStatementArra">
                    <el-button size="small" type="primary">点击上传</el-button>
                    <div slot="tip" class="el-upload__tip">添加相关附件</div>
                  </el-upload>
           </el-form-item>
        </el-col>
        <el-col :span="24">
            <el-form-item label="阳光网结算" prop="sunshineNetSettlement"
                :rules="[
                 ]">
              <el-upload ref="sunshineNetSettlement"
                    v-if="visible"
                    :action="`${this.$http.BASE_URL}/sys/file/webupload/upload?uploadPath=/epc/pmroadworkarchive/roadworkArchive`"
                    :headers="{token: $cookie.get('token')}"
                    :on-preview="(file, fileList) => {$window.location.href = (file.response && file.response.url) || file.url}"
                    :on-success="(response, file, fileList) => {
                       inputForm.sunshineNetSettlement = fileList.map(item => (item.response && item.response.url) || item.url).join('|')
                    }"
                    :on-remove="(file, fileList) => {
                      $http.post(`/sys/file/webupload/deleteByUrl?url=${(file.response && file.response.url) || file.url}`).then(({data}) => {
                        $message.success(data.msg)
                      })
                      inputForm.sunshineNetSettlement = fileList.map(item => item.url).join('|')
                    }"
                    :before-remove="(file, fileList) => {
                      return $confirm(`确定移除 ${file.name}？`)
                    }"
                    multiple
                    :limit="5"
                    :on-exceed="(files, fileList) =>{
                      $message.warning(`当前限制选择 5 个文件，本次选择了 ${files.length} 个文件，共选择了 ${files.length + fileList.length} 个文件`)
                    }"
                    :file-list="sunshineNetSettlementArra">
                    <el-button size="small" type="primary">点击上传</el-button>
                    <div slot="tip" class="el-upload__tip">添加相关附件</div>
                  </el-upload>
           </el-form-item>
        </el-col>
        <el-col :span="24">
            <el-form-item label="图纸" prop="drawing"
                :rules="[
                 ]">
              <el-upload ref="drawing"
                    v-if="visible"
                    :action="`${this.$http.BASE_URL}/sys/file/webupload/upload?uploadPath=/epc/pmroadworkarchive/roadworkArchive`"
                    :headers="{token: $cookie.get('token')}"
                    :on-preview="(file, fileList) => {$window.location.href = (file.response && file.response.url) || file.url}"
                    :on-success="(response, file, fileList) => {
                       inputForm.drawing = fileList.map(item => (item.response && item.response.url) || item.url).join('|')
                    }"
                    :on-remove="(file, fileList) => {
                      $http.post(`/sys/file/webupload/deleteByUrl?url=${(file.response && file.response.url) || file.url}`).then(({data}) => {
                        $message.success(data.msg)
                      })
                      inputForm.drawing = fileList.map(item => item.url).join('|')
                    }"
                    :before-remove="(file, fileList) => {
                      return $confirm(`确定移除 ${file.name}？`)
                    }"
                    multiple
                    :limit="5"
                    :on-exceed="(files, fileList) =>{
                      $message.warning(`当前限制选择 5 个文件，本次选择了 ${files.length} 个文件，共选择了 ${files.length + fileList.length} 个文件`)
                    }"
                    :file-list="drawingArra">
                    <el-button size="small" type="primary">点击上传</el-button>
                    <div slot="tip" class="el-upload__tip">添加相关附件</div>
                  </el-upload>
           </el-form-item>
        </el-col>
        <el-col :span="24">
            <el-form-item label="报审表" prop="report"
                :rules="[
                 ]">
              <el-upload ref="report"
                    v-if="visible"
                    :action="`${this.$http.BASE_URL}/sys/file/webupload/upload?uploadPath=/epc/pmroadworkarchive/roadworkArchive`"
                    :headers="{token: $cookie.get('token')}"
                    :on-preview="(file, fileList) => {$window.location.href = (file.response && file.response.url) || file.url}"
                    :on-success="(response, file, fileList) => {
                       inputForm.report = fileList.map(item => (item.response && item.response.url) || item.url).join('|')
                    }"
                    :on-remove="(file, fileList) => {
                      $http.post(`/sys/file/webupload/deleteByUrl?url=${(file.response && file.response.url) || file.url}`).then(({data}) => {
                        $message.success(data.msg)
                      })
                      inputForm.report = fileList.map(item => item.url).join('|')
                    }"
                    :before-remove="(file, fileList) => {
                      return $confirm(`确定移除 ${file.name}？`)
                    }"
                    multiple
                    :limit="5"
                    :on-exceed="(files, fileList) =>{
                      $message.warning(`当前限制选择 5 个文件，本次选择了 ${files.length} 个文件，共选择了 ${files.length + fileList.length} 个文件`)
                    }"
                    :file-list="reportArra">
                    <el-button size="small" type="primary">点击上传</el-button>
                    <div slot="tip" class="el-upload__tip">添加相关附件</div>
                  </el-upload>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="项目经理" prop="projectManager.id"
                :rules="[
                 ]">
                <user-select :limit='1' :value="inputForm.projectManager.id" @getValue='(value) => {inputForm.projectManager.id=value}'></user-select>
           </el-form-item>
        </el-col>
        <el-col :span="24">
            <el-form-item label="定案表" prop="finalTable"
                :rules="[
                 ]">
              <el-upload ref="finalTable"
                    v-if="visible"
                    :action="`${this.$http.BASE_URL}/sys/file/webupload/upload?uploadPath=/epc/pmroadworkarchive/roadworkArchive`"
                    :headers="{token: $cookie.get('token')}"
                    :on-preview="(file, fileList) => {$window.location.href = (file.response && file.response.url) || file.url}"
                    :on-success="(response, file, fileList) => {
                       inputForm.finalTable = fileList.map(item => (item.response && item.response.url) || item.url).join('|')
                    }"
                    :on-remove="(file, fileList) => {
                      $http.post(`/sys/file/webupload/deleteByUrl?url=${(file.response && file.response.url) || file.url}`).then(({data}) => {
                        $message.success(data.msg)
                      })
                      inputForm.finalTable = fileList.map(item => item.url).join('|')
                    }"
                    :before-remove="(file, fileList) => {
                      return $confirm(`确定移除 ${file.name}？`)
                    }"
                    multiple
                    :limit="5"
                    :on-exceed="(files, fileList) =>{
                      $message.warning(`当前限制选择 5 个文件，本次选择了 ${files.length} 个文件，共选择了 ${files.length + fileList.length} 个文件`)
                    }"
                    :file-list="finalTableArra">
                    <el-button size="small" type="primary">点击上传</el-button>
                    <div slot="tip" class="el-upload__tip">添加相关附件</div>
                  </el-upload>
           </el-form-item>
        </el-col>
        <el-col :span="24">
            <el-form-item label="验收证书" prop="acceptanceCertificate"
                :rules="[
                 ]">
              <el-upload ref="acceptanceCertificate"
                    v-if="visible"
                    :action="`${this.$http.BASE_URL}/sys/file/webupload/upload?uploadPath=/epc/pmroadworkarchive/roadworkArchive`"
                    :headers="{token: $cookie.get('token')}"
                    :on-preview="(file, fileList) => {$window.location.href = (file.response && file.response.url) || file.url}"
                    :on-success="(response, file, fileList) => {
                       inputForm.acceptanceCertificate = fileList.map(item => (item.response && item.response.url) || item.url).join('|')
                    }"
                    :on-remove="(file, fileList) => {
                      $http.post(`/sys/file/webupload/deleteByUrl?url=${(file.response && file.response.url) || file.url}`).then(({data}) => {
                        $message.success(data.msg)
                      })
                      inputForm.acceptanceCertificate = fileList.map(item => item.url).join('|')
                    }"
                    :before-remove="(file, fileList) => {
                      return $confirm(`确定移除 ${file.name}？`)
                    }"
                    multiple
                    :limit="5"
                    :on-exceed="(files, fileList) =>{
                      $message.warning(`当前限制选择 5 个文件，本次选择了 ${files.length} 个文件，共选择了 ${files.length + fileList.length} 个文件`)
                    }"
                    :file-list="acceptanceCertificateArra">
                    <el-button size="small" type="primary">点击上传</el-button>
                    <div slot="tip" class="el-upload__tip">添加相关附件</div>
                  </el-upload>
           </el-form-item>
        </el-col>
        <el-col :span="24">
            <el-form-item label="开完工报告" prop="openCompletionReport"
                :rules="[
                 ]">
              <el-upload ref="openCompletionReport"
                    v-if="visible"
                    :action="`${this.$http.BASE_URL}/sys/file/webupload/upload?uploadPath=/epc/pmroadworkarchive/roadworkArchive`"
                    :headers="{token: $cookie.get('token')}"
                    :on-preview="(file, fileList) => {$window.location.href = (file.response && file.response.url) || file.url}"
                    :on-success="(response, file, fileList) => {
                       inputForm.openCompletionReport = fileList.map(item => (item.response && item.response.url) || item.url).join('|')
                    }"
                    :on-remove="(file, fileList) => {
                      $http.post(`/sys/file/webupload/deleteByUrl?url=${(file.response && file.response.url) || file.url}`).then(({data}) => {
                        $message.success(data.msg)
                      })
                      inputForm.openCompletionReport = fileList.map(item => item.url).join('|')
                    }"
                    :before-remove="(file, fileList) => {
                      return $confirm(`确定移除 ${file.name}？`)
                    }"
                    multiple
                    :limit="5"
                    :on-exceed="(files, fileList) =>{
                      $message.warning(`当前限制选择 5 个文件，本次选择了 ${files.length} 个文件，共选择了 ${files.length + fileList.length} 个文件`)
                    }"
                    :file-list="openCompletionReportArra">
                    <el-button size="small" type="primary">点击上传</el-button>
                    <div slot="tip" class="el-upload__tip">添加相关附件</div>
                  </el-upload>
           </el-form-item>
        </el-col>
        <el-col :span="24">
            <el-form-item label="开发票" prop="invoice"
                :rules="[
                 ]">
              <el-upload ref="invoice"
                    v-if="visible"
                    :action="`${this.$http.BASE_URL}/sys/file/webupload/upload?uploadPath=/epc/pmroadworkarchive/roadworkArchive`"
                    :headers="{token: $cookie.get('token')}"
                    :on-preview="(file, fileList) => {$window.location.href = (file.response && file.response.url) || file.url}"
                    :on-success="(response, file, fileList) => {
                       inputForm.invoice = fileList.map(item => (item.response && item.response.url) || item.url).join('|')
                    }"
                    :on-remove="(file, fileList) => {
                      $http.post(`/sys/file/webupload/deleteByUrl?url=${(file.response && file.response.url) || file.url}`).then(({data}) => {
                        $message.success(data.msg)
                      })
                      inputForm.invoice = fileList.map(item => item.url).join('|')
                    }"
                    :before-remove="(file, fileList) => {
                      return $confirm(`确定移除 ${file.name}？`)
                    }"
                    multiple
                    :limit="5"
                    :on-exceed="(files, fileList) =>{
                      $message.warning(`当前限制选择 5 个文件，本次选择了 ${files.length} 个文件，共选择了 ${files.length + fileList.length} 个文件`)
                    }"
                    :file-list="invoiceArra">
                    <el-button size="small" type="primary">点击上传</el-button>
                    <div slot="tip" class="el-upload__tip">添加相关附件</div>
                  </el-upload>
           </el-form-item>
        </el-col>
        <el-col :span="24">
            <el-form-item label="交税凭证" prop="taxReceipts"
                :rules="[
                 ]">
              <el-upload ref="taxReceipts"
                    v-if="visible"
                    :action="`${this.$http.BASE_URL}/sys/file/webupload/upload?uploadPath=/epc/pmroadworkarchive/roadworkArchive`"
                    :headers="{token: $cookie.get('token')}"
                    :on-preview="(file, fileList) => {$window.location.href = (file.response && file.response.url) || file.url}"
                    :on-success="(response, file, fileList) => {
                       inputForm.taxReceipts = fileList.map(item => (item.response && item.response.url) || item.url).join('|')
                    }"
                    :on-remove="(file, fileList) => {
                      $http.post(`/sys/file/webupload/deleteByUrl?url=${(file.response && file.response.url) || file.url}`).then(({data}) => {
                        $message.success(data.msg)
                      })
                      inputForm.taxReceipts = fileList.map(item => item.url).join('|')
                    }"
                    :before-remove="(file, fileList) => {
                      return $confirm(`确定移除 ${file.name}？`)
                    }"
                    multiple
                    :limit="5"
                    :on-exceed="(files, fileList) =>{
                      $message.warning(`当前限制选择 5 个文件，本次选择了 ${files.length} 个文件，共选择了 ${files.length + fileList.length} 个文件`)
                    }"
                    :file-list="taxReceiptsArra">
                    <el-button size="small" type="primary">点击上传</el-button>
                    <div slot="tip" class="el-upload__tip">添加相关附件</div>
                  </el-upload>
           </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="备注信息" prop="remarks"
                :rules="[
                 ]">
          <el-input type="textarea" v-model="inputForm.remarks" placeholder="请填写备注信息"     ></el-input>
           </el-form-item>
        </el-col>
        </el-row>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button size="small" @click="visible = false">关闭</el-button>
      <el-button size="small" type="primary" v-if="method != 'view'" @click="doSubmit()" v-noMoreClick>确定</el-button>
    </span>
  </el-dialog>
</div>
</template>

<script>
  import GridSelect from '@/components/gridSelect'
  import SelectTree from '@/components/treeSelect/treeSelect.vue'
  import UserSelect from '@/components/userSelect'
  export default {
    data () {
      return {
        title: '',
        method: '',
        visible: false,
        loading: false,
        finalStatementArra: [],
        sunshineNetSettlementArra: [],
        drawingArra: [],
        reportArra: [],
        finalTableArra: [],
        acceptanceCertificateArra: [],
        openCompletionReportArra: [],
        invoiceArra: [],
        taxReceiptsArra: [],
        inputForm: {
          id: '',
          contractFramework: {
            id: ''
          },
          applyDepartment: '',
          proposer: '',
          applicationDate: '',
          firstParty: {
            id: ''
          },
          engineeringSource: '',
          singleProject: '',
          officeName: '',
          filiale: {
            id: ''
          },
          projectDepartment: {
            id: ''
          },
          entrustmentDate: '',
          commenceDate: '',
          completeDate: '',
          natureEngineeringConstruction: '',
          settlementProperties: '',
          constructionNature: '',
          major: {
            id: ''
          },
          constructionRegion: '',
          naturePartner: '',
          partner: '',
          jobNumber: '',
          projectStatus: '',
          constructionUnit: {
            id: ''
          },
          departmentManager: '',
          departmentManagerPhone: '',
          projectManagerEveryOne: {
            id: ''
          },
          projectManagerPhone: '',
          designdesignOrganization: {
            id: ''
          },
          designPrincipal: '',
          designPrincipalPhone: '',
          designer: '',
          designerPhone: '',
          supervisingUnit: '',
          supervisingPrincipal: '',
          siteSupervision: '',
          siteSupervisionPhone: '',
          taxInclusiveInvestment: '',
          costingTaxRate: '',
          costingTaxes: '',
          taxDeductibleInvestment: '',
          costingProductionSafetyCharge: '',
          costingMechanicManDays: '',
          costingGeneralWorkerManDays: '',
          costingComprehensiveManDays: '',
          costingComprehensiveDailyUnitPrice: '',
          costingServiceDiscounts: '',
          costingTakeFee: '',
          costingLossFee: '',
          costingCoordinateFee: '',
          costingMarketCost: '',
          costingAuditFee: '',
          costingMaterialFee: '',
          costingMaterialFreight: '',
          costingOtherFee: '',
          cooperationDiscount: '',
          costingGrossProfitRate: '',
          costingProjectRevenues: '',
          includingTaxCooperationFee: '',
          cooperationTaxRate: '',
          cooperationTaxes: '',
          exceptTaxCooperationFee: '',
          cooperationProductionSafetyCharge: '',
          cooperationMechanicManDays: '',
          cooperationGeneralWorkerManDays: '',
          cooperationComprehensiveManDays: '',
          cooperationComprehensiveDailyUnitPrice: '',
          cooperationServiceDiscounts: '',
          cooperationServiceDiscounts: '',
          cooperationLossFee: '',
          cooperationCoordinateFee: '',
          cooperationMarketCost: '',
          cooperationAuditFee: '',
          cooperationMaterialFee: '',
          cooperationMaterialFreight: '',
          cooperationOtherFee: '',
          cooperationGrossProfitRate: '',
          cooperationProjectRevenues: '',
          serviceFee: '',
          startWorkingReport: {
            id: ''
          },
          barriersDelayReport: {
            id: ''
          },
          lockoutReport: {
            id: ''
          },
          multiplexReport: {
            id: ''
          },
          completionReport: {
            id: ''
          },
          projectWeeklyNewspaper: {
            id: ''
          },
          contractSubpackage: {
            id: ''
          },
          contractLabour: {
            id: ''
          },
          inspectionReport: {
            id: ''
          },
          submitReviewReport: {
            id: ''
          },
          engineeringLog: {
            id: ''
          },
          materialDepot: {
            id: ''
          },
          archiveStatus: '',
          settlementClerk: {
            id: ''
          },
          finalStatement: '',
          sunshineNetSettlement: '',
          drawing: '',
          report: '',
          projectManager: {
            id: ''
          },
          finalTable: '',
          acceptanceCertificate: '',
          openCompletionReport: '',
          invoice: '',
          taxReceipts: '',
          remarks: ''
        }
      }
    },
    components: {
      GridSelect,
      SelectTree,
      UserSelect
    },
    methods: {
      init (method, id) {
        this.method = method
        this.inputForm.id = id
        if (method === 'add') {
          this.title = `新建施工归档`
        } else if (method === 'edit') {
          this.title = '修改施工归档'
        } else if (method === 'view') {
          this.title = '查看施工归档'
        }
        this.finalStatementArra = []
        this.sunshineNetSettlementArra = []
        this.drawingArra = []
        this.reportArra = []
        this.finalTableArra = []
        this.acceptanceCertificateArra = []
        this.openCompletionReportArra = []
        this.invoiceArra = []
        this.taxReceiptsArra = []
        this.visible = true
        this.loading = false
        this.$nextTick(() => {
          this.$refs.inputForm.resetFields()
          if (method === 'edit' || method === 'view') { // 修改或者查看
            this.loading = true
            this.$http({
              url: `/epc/pmroadworkarchive/roadworkArchive/queryById?id=${this.inputForm.id}`,
              method: 'get'
            }).then(({data}) => {
              this.inputForm = this.recover(this.inputForm, data.roadworkArchive)
              this.inputForm.finalStatement.split('|').forEach((item) => {
                if (item.trim().length > 0) {
                  this.finalStatementArra.push({name: decodeURIComponent(item.substring(item.lastIndexOf('/') + 1)), url: item})
                }
              })
              this.inputForm.sunshineNetSettlement.split('|').forEach((item) => {
                if (item.trim().length > 0) {
                  this.sunshineNetSettlementArra.push({name: decodeURIComponent(item.substring(item.lastIndexOf('/') + 1)), url: item})
                }
              })
              this.inputForm.drawing.split('|').forEach((item) => {
                if (item.trim().length > 0) {
                  this.drawingArra.push({name: decodeURIComponent(item.substring(item.lastIndexOf('/') + 1)), url: item})
                }
              })
              this.inputForm.report.split('|').forEach((item) => {
                if (item.trim().length > 0) {
                  this.reportArra.push({name: decodeURIComponent(item.substring(item.lastIndexOf('/') + 1)), url: item})
                }
              })
              this.inputForm.finalTable.split('|').forEach((item) => {
                if (item.trim().length > 0) {
                  this.finalTableArra.push({name: decodeURIComponent(item.substring(item.lastIndexOf('/') + 1)), url: item})
                }
              })
              this.inputForm.acceptanceCertificate.split('|').forEach((item) => {
                if (item.trim().length > 0) {
                  this.acceptanceCertificateArra.push({name: decodeURIComponent(item.substring(item.lastIndexOf('/') + 1)), url: item})
                }
              })
              this.inputForm.openCompletionReport.split('|').forEach((item) => {
                if (item.trim().length > 0) {
                  this.openCompletionReportArra.push({name: decodeURIComponent(item.substring(item.lastIndexOf('/') + 1)), url: item})
                }
              })
              this.inputForm.invoice.split('|').forEach((item) => {
                if (item.trim().length > 0) {
                  this.invoiceArra.push({name: decodeURIComponent(item.substring(item.lastIndexOf('/') + 1)), url: item})
                }
              })
              this.inputForm.taxReceipts.split('|').forEach((item) => {
                if (item.trim().length > 0) {
                  this.taxReceiptsArra.push({name: decodeURIComponent(item.substring(item.lastIndexOf('/') + 1)), url: item})
                }
              })
              this.loading = false
            })
          }
        })
      },
      // 表单提交
      doSubmit () {
        this.$refs['inputForm'].validate((valid) => {
          if (valid) {
            this.loading = true
            this.$http({
              url: `/epc/pmroadworkarchive/roadworkArchive/save`,
              method: 'post',
              data: this.inputForm
            }).then(({data}) => {
              this.loading = false
              if (data && data.success) {
                this.visible = false
                this.$message.success(data.msg)
                this.$emit('refreshDataList')
              }
            })
          }
        })
      }
    }
  }
</script>